package org.xp.judgeplatform.pojo.dto.ProblemSetDTO;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

@Data
@Schema(description = "题目集创建请求")
public class ProblemSetCreateDTO {
    
    @NotBlank(message = "题目集名称不能为空")
    @Size(max = 200, message = "题目集名称长度不能超过200个字符")
    @Schema(description = "题目集名称", example = "算法基础练习", required = true)
    private String name;

    @Size(max = 1000, message = "描述长度不能超过1000个字符")
    @Schema(description = "题目集描述", example = "这是一个适合初学者的算法题目集合")
    private String description;

    @Schema(description = "是否公开", example = "false", defaultValue = "false")
    private Boolean isPublic = false;

    @Schema(description = "题目ID列表", example = "[1, 2, 3]")
    private List<Long> problemIds;
}
